package com.yidu.springbootdemo.permission.dao;

import com.yidu.springbootdemo.permission.action.vo.TuserVo;
import com.yidu.springbootdemo.permission.domain.Tcharacter;
import com.yidu.springbootdemo.permission.domain.Tuser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface TuserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(Tuser record);

    int insertSelective(Tuser record);

    Tuser selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(Tuser record);

    int updateByPrimaryKey(Tuser record);
    //查询用户
    List<Tuser> login(Tuser record);
    
    public Tcharacter findByID2(String chaID);
    
    public int count(Tuser mod);
    
    public Tuser findByID(String chaID);
    
    public List<Tuser> findAll(Map<String, Object> map);

    public Tuser findUser(Map<String, Object> map);

    Tuser findBycompanyNum(Tuser tuser);

    List<Tuser> selBycompanyNum(String companyNum);

    List<Tuser> selAll();
}